home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2001 / MacHack 2001.toast / pc / Sessions / Traut / ZStrings / Source / Win32 / Win32ZString.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-06-23  |  1.6 KB  |  75 lines

  1. /*==================================================================
  2.     File:        Win32ZString.h
  3.     
  4.     Contains:    Windows-specific parsing for ZStrings.
  5.  
  6.     Written by:    Nalini Prakash
  7.     
  8.     Copyright:    2000-2001 Connectix Corporation
  9.     
  10.     This source has been placed into the public domain by
  11.     Connectix Corporation. You have the right to modify, 
  12.     distribute or use this code without any legal limitations
  13.     or finanicial/licensing requirements. Connectix is not 
  14.     liable for any problems that result from the use of this 
  15.     code.
  16.     
  17.     If you have comments, feedback, questions, or would like
  18.     to submit bug fixes or updates to this code, please email
  19.     opensource@connectix.com.
  20. ==================================================================*/
  21.  
  22. #ifndef __WIN32ZSTRING__
  23. #define __WIN32ZSTRING__
  24.  
  25.  
  26. #include "ZString.h"
  27. #include "ZStringTypes.h"
  28. #include "ZStringParser.h"
  29.  
  30.  
  31. /*==================================================================
  32.     ZString
  33. ==================================================================*/
  34.  
  35. class Win32ZString : public ZString
  36. {
  37.     public:
  38.         // Initialization & Teardown
  39.         static void
  40.         Initialize();
  41.         
  42.         static void
  43.         TearDown();
  44.  
  45.         static Z_UInt16
  46.         CalcOverrideDictionaryID();
  47.  
  48.         // Dictionary methods
  49.         static Z_Boolean
  50.         LoadOverrideDictionary(
  51.             Z_UInt16            inOverrideID);
  52.  
  53.         static Z_Boolean
  54.         LoadOverrideDictionary(
  55.             const char *        inFilename);
  56.  
  57.     private:
  58.         static char *        sDictionaryData;    
  59. };
  60.  
  61.  
  62. class Win32ZStringParser : public ZStringParser
  63. {
  64.     public:
  65.         virtual Z_UInt16
  66.         GetTagReplacement(
  67.             ZStringTagID                inTagID,
  68.             char *                        outReplacement);
  69. };
  70.  
  71.  
  72. #endif                                // __WIN32ZSTRING__
  73.  
  74.  
  75.